package com.imooc.demo.service;

import com.imooc.demo.entity.Order;

import java.util.List;

public interface OrderService {
    //List<Order> findByBuyerOpenid(String buyerOpenid);
    Order findOrderDetail(String orderId);
    boolean orderInsert(Order order);

    List<Order> findOrderByOrderId(String orderId);
    List<Order> findOrderByOpenid(String buyerOpenid ,Integer orderStatus);

    //已取消
    boolean cancel(Order order);

    ///根据地址查订单
    List<Order> findOrderByAddressArea(String addressArea ,String addressDetail ,Integer category10Id);

    //接单
    boolean jieDan(Order order);

    ///根据工匠查订单
    //List<Order> findOrderByWorker(String workerOpenid,Integer orderStatus);
    List<Order> findOrderByWorker(String openid,Integer orderStatus);
    //工匠取消订单
    boolean workercancel(Order order);

    //已完成
    boolean finish(Order order);

    //消息提醒
    //查找某人所有订单
    List<Order> findAllOrderByOpenid(String buyerOpenid);


    ////////
    List<Order> personOrder(String buyerOpenid ,Integer orderStatus);


    /////评分
    boolean setPingFen(Order order);
    List<Order> getAllPingFen();
}
